const state = {
  uid: '', 
  imgurl: '', 
  name:''
};

const mutations = {
  SET_UID: (state, data) => {
    state.uid = data;
	uni.setStorageSync('uid', data);
  },
  SET_IMG:(state, data) => {
  	state.imgurl= data;
	uni.setStorageSync('imgurl', data);
	},
	SET_NAME:(state, data) => {
		state.name= data;
		uni.setStorageSync('name', data);
	}	
};


const actions = {};

export default {
	// namespaced: true,
  state,
  mutations,
  actions
};
